package com.framework.core;

/**
 * 定义系统常量
 * @author wengxk
 *
 */

public class SysConst {
	
	/**WEB-Session中放置对象的名称定义 */
	public static final String SYS_CURRENT_USER = "SYS_CURRENT_USER";
	
	/**是否启用WEB签名验证，防篡改**/
	public static final String SYS_VERIFY_WEBT_SIGN = "SYS_VERIFY_WEBT_SIGN";
	
	/**兼容接口获取REQUEST参数 */
	public static final String INTF_REQUEST_MAP = "INTF_REQUEST_MAP";
	
	/**接口服务配置**/
	public static final String INTF_URL = "intf.conn.url";
	public static final String INTF_APP = "intf.conn.app";
	public static final String INTF_APP_KEY = "intf.conn.secretKey";
	public static final String INTF_DEFAULT_TOKEN = "intf.login.token";
	public static final String INTF_ENCRYPT = "intf.isEncrypt";
	public static final String INTF_TIMEOUT = "intf.soTimeOut";
	
	
	/**系统BO_METHOD缓存KEY */
	public static final String CACHE_SYS_BO_METHOD = "SYS_BO_METHOD";
	/**菜单缓存KEY */
	public static final String CACHE_SYS_MENU_KEY = "SYS_MENU";
	/**操作员权限缓存KEY */
	public static final String CACHE_SYS_GRANT_KEY = "SYS_GRANT";
	/**模板配置缓存KEY */
	public static final String CACHE_SYS_ENTITY_TMPL_KEY = "SYS_ENTITY_TMPL";
	/**模板元素配置缓存KEY */
	public static final String CACHE_SYS_TMPL_ELEMENT_KEY = "CACHE_SYS_TMPL_ELEMENT_KEY";
	/**客户模板关系表缓存KEY */
	public static final String CACHE_SYS_GCUST_TMPL_REL_KEY = "CACHE_SYS_GCUST_TMPL_REL_KEY";
	
	//分页组件常量
	public static final String JSP_GRID_TYPE = "_GRID_TYPE";	//Grid类型：jq和dojo
	public static final String REQUEST_ATTR_NAME_PAGE ="_PAGE";
	public static final String JSP_NAME_PAGE_NUMBER = "_PAGE_NUMBER";
	public static final String JSP_NAME_PAGE_SIZE = "_PAGE_SIZE";
	public static final int JSP_PAGE_SIZE = 10;//每页默认记录数
	
	//分页组件常量[适用QueryReadStore和DataGrid配合使用]
	public static final String REQUEST_GRID_START_ROW = "start";	//开始记录数
	public static final String REQUEST_GRID_PAGE_SIZE = "count";	//每页记录数
	
	//分页组件常量[适用Jquery-EasyUI-DataGrid配合使用]
	public static final String REQUEST_JQGRID_PAGE_NUM = "page";	//第几页数
	public static final String REQUEST_JQGRID_PAGE_SIZE = "rows";	//每页记录数
		
	//是否全部导出
	public static final String JSP_NAME_IS_EXPORT = "_ALLEXPORT";
	
	//管理员ID
	public static final long SYSTEM_ID_ADMINISTRATOR = 1;
	/**历史表类型 1：历史、2, 差异，3两者*/
	public static class SYS_TABLE_HIS_CONF_TYPE{
		/**历史表类型 1：历史、2, 差异，3两者*/
		public static final int HIS = 1;
		/**历史表类型1：历史、2, 差异，3两者 */
		public static final int DIFF = 2;
		/**历史表类型 1：历史、2, 差异，3两者*/
		public static final int BOTH = 3;
	}
	/**历史表操作记录类型*/
	public static class OP_TYPE{
		public static final int INSERT=1;
		public static final int UPDATE=2;
		public static final int DELETE=3;
	}
}
